package com.xy.improve;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/6/10 19:13
 * @description 抽象建造者
 */
public abstract class HouseBuilder {
    protected House house = new House();

    // 建造房子
    abstract void buildBasic();
    abstract void buildWall();
    abstract void buildRoofed();

    /**
     *
     * @return 返回建造好的房屋
     */
    public House getBuildHouse() {
        return house;
    }
}
